<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:p="http://primefaces.org/ui" 
      xmlns:component="http://java.sun.com/jsf/composite/component">

    <ui:composition template="/resources/include/template.xhtml">

        <ui:define name="title">

            <h:outputText value="#{bundle.Bambole} - #{bundle.Shipment}"/>

        </ui:define>

        <ui:define name="body">

            <h:form>

                <ui:include src="/resources/include/menu.xhtml"/> 

                <p:panel header="#{bundle.Shipment} - #{bundle.Create}">           

                    <component:toolbar

                        previousButtonDisabled="true"
                        refreshButtonDisabled="true"
                        nextButtonDisabled="true"
                        createButtonDisabled="true" 
                        editButtonDisabled="true"
                        searchButtonDisabled="true"

                        deleteButtonDisabled="true"            

                        returnButtonAction="#{shipmentHeaderController.prepareList}"
                        saveButtonAction="#{shipmentHeaderController.create}"

                        /> 

                    <component:shipment_header

                        typeRequired="true"
                        statusRequired="true"
                        channelRequired="true"
                        orderedRequired="true"
                        organizationRequired="true"
                        addressRequired="true"
                        personRequired="true"
                        paymentTermRequired="true"
                        estimatedDeliveryDateRequired="true"
                        amountRequired="true"
                        discountRequired="true"

                        documentSearchDisabled="true"
                        amountDisabled="true"
                        discountDisabled="true"

                        documentSearchRendered="true"
                        orderedRendered="true"
                        estimatedDeliveryDateRendered="true"
                        freightEstimatedCostRendered="true"
                        freightEstimatedTransitTimeRendered="true"
                        amountRendered="true"
                        discountRendered="true"
                        productAmountRendered="true"
                        discountedProductAmountRendered="true"
                        productDiscountRendered="true"
                        totalDiscountRendered="true"

                        documentSearchValue="#{shipmentHeaderController.documentSearchOnCreate}"

                        />          

                </p:panel>

            </h:form>

        </ui:define>

    </ui:composition>

</html>
